home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 January / maximum-cd-2001-01.iso / Hard Disk / Test-Run / Test-Run 210.exe / Control / Tr / @Create.bat < prev    next >
Encoding:
DOS Batch File  |  1999-08-10  |  4.5 KB  |  102 lines

  1. @echo off
  2. if not exist c:\windows\command\attrib.exe goto :filegone
  3. if not exist c:\windows\command\deltree.exe goto :filegone
  4. if not exist c:\windows\command\xcopy.exe goto :filegone
  5. if not exist c:\windows\command\start.exe goto :filegone
  6. if not exist c:\windows\command\choice.com goto :filegone
  7. if not exist c:\windows\regedit.exe goto :filegone
  8. if not exist c:\windows\notepad.exe goto :filegone
  9. if not exist c:\windows\write.exe goto :filegone
  10. goto :create
  11.  
  12. :filegone
  13. echo.
  14. echo.
  15. echo         ╔════════════════════════════════════════════════════════════╗
  16. echo         ║               *** FILES MISSING ALERT ***                  ║
  17. echo         ║ It is detected that there now are some missing files from  ║
  18. echo         ║ your windows installation. The Test-Run program relies on  ║
  19. echo         ║ those files to be able to operate safely, and it is vital  ║
  20. echo         ║ that they have been correctly installed with Windows. The  ║
  21. echo         ║ list of essential files used by Test-Run program is given  ║
  22. echo         ║ below. This operation has been aborted. Test-Run will not  ║
  23. echo         ║ function unless the missing files are replaced.            ║
  24. echo         ║ ┌────────────────────────────────────────────────────────┐ ║
  25. echo         ║ │    ONE OR MORE OF THE FILES LISTED BELOW IS MISSING!   │ ║
  26. echo         ║ │                                                        │ ║
  27. echo         ║ │ C:\WINDOWS\COMMAND\..ATTRIB.EXE, START.EXE, XCOPY.EXE,│ ║
  28. echo         ║ │                                DELTREE.EXE, CHOICE.COM.│ ║
  29. echo         ║ │ C:\WINDOWS\.......REGEDIT.EXE, NOTEPAD.EXE, WRITE.EXE.│ ║
  30. echo         ║ └────────────────────────────────────────────────────────┘ ║
  31. echo         ╚════════════════════════════════════════════════════════════╝
  32. goto :end
  33.  
  34.  
  35. :create
  36. echo.
  37. echo       ╔═════════════════════════════════════════════════════════════════╗
  38. echo       ║  Stop and think!   You are about to copy the current Registry   ║
  39. echo       ║  and configuration files to be  used for the TEST-RUN Master.   ║
  40. echo       ║                                                                 ║
  41. echo       ║  This choice will overwrite any previous TEST-RUN Master copy   ║
  42. echo       ║  that you may have made.  The TEST-RUN Master displays unique   ║
  43. echo       ║  wallpaper to  advise you when TEST-RUN Registry is operating   ║
  44. echo       ║  and safe to load trial software  without fear of corruption.   ║
  45. echo       ╚═════════════════════════════════════════════════════════════════╝
  46. echo.
  47. choice .                     DO YOU WANT TO CONTINUE  
  48. echo.
  49. echo.  
  50. if errorlevel 2 goto :end
  51. cls
  52. echo.
  53. echo              Now copying current Registry to be used for TEST-RUN
  54. echo              ════════════════════════════════════════════════════
  55. echo.
  56. echo.
  57. attrib c:\windows\system.dat -s -h -r
  58. attrib c:\windows\user.dat -s -h -r
  59. attrib c:\msdos.sys -s -h -r
  60. if exist c:\windows\Tr~systm.-ok attrib c:\windows\Tr~systm.-ok -s -h -r
  61. if exist c:\windows\Tr~user.-ok attrib c:\windows\Tr~user.-ok -s -h -r
  62. if exist c:\Tr~msdos.-ok attrib c:\Tr~msdos.-ok -s -h -r
  63. copy c:\windows\system.dat c:\windows\Tr~systm.-ok /v /y
  64. copy c:\windows\user.dat c:\windows\Tr~user.-ok /v /y
  65. copy c:\windows\win.ini c:\windows\Tr~winin.-ok /v /y
  66. copy c:\windows\system.ini c:\windows\Tr~sysin.-ok /v /y
  67. copy c:\windows\protocol.ini c:\windows\Tr~proin.-ok /v/y
  68. copy c:\autoexec.bat c:\Tr~autox.-ok /v /y
  69. copy c:\config.sys c:\Tr~confg.-ok /v /y
  70. copy c:\msdos.sys c:\Tr~msdos.-ok /v /y
  71. regedit /L:C:\WINDOWS\TR~SYSTM.-OK /R:C:\WINDOWS\TR~USER.-OK c:\windows\command\tr-by-bb\Data2.dat
  72. attrib c:\windows\system.dat +s +h +r
  73. attrib c:\windows\user.dat +s +h +r
  74. attrib c:\msdos.sys +s +h +r
  75. attrib c:\windows\Tr~systm.-ok +s +h +r
  76. attrib c:\windows\Tr~user.-ok +s +h +r
  77. echo.
  78. cls
  79. echo.
  80. echo       ╔═════════════════════════════════════════════════════════════════╗
  81. echo       ║   The TEST-RUN Registry has been made. When it is being used    ║
  82. echo       ║   you will notice special wallpaper. To toggle between TEST-    ║
  83. echo       ║   RUN and your 'NORMAL' Registry,  select  'SWITCH' from the    ║
  84. echo       ║     start menu... or type '@SWITCH' at the prompt, in DOS.      ║  
  85. echo       ╚═════════════════════════════════════════════════════════════════╝
  86. echo.
  87. pause
  88. goto :win 
  89.  
  90. :end
  91. echo.
  92. echo                 CREATE MASTER ABORTED... NO REGISTRY BACKUP MADE.
  93. echo                 ═════════════════════════════════════════════════
  94. echo.
  95. echo.
  96. echo.
  97. pause
  98. goto :win
  99.  
  100. :win
  101. exit
  102.